<div class="container-fluid">

  <div class="row">

    <div class="col-sm-2">

      <div class="row">
        <div class="col-sm-12 col-xs-12">
          <filter-on-cond conditions="resourceFilterConditions" condition-obj="filterCondObj" >
          </filter-on-cond>
        </div>
      </div>

      <div class="row" ng-show="userPrivilege.upload">
        <div class="col-sm-12 col-xs-12">

          <!--文件上传按钮-->
          <button ng-file-select ng-model="files" multiple="true" class="btn btn-success btn-block">
            点此上传文件
          </button>

          <!--上传进度条-->
          <div ng-repeat="currentUpload in uploadings">
            <small><em>{{currentUpload.filename}}</em></small>
            <progressbar animate="false" value="currentUpload.value" type="success"><b>{{currentUpload.value}}%</b></progressbar>
          </div>

        </div>
      </div>


    </div>

    <div class="col-sm-10">
      <div class="row">

        <div class="col-sm-4" ng-repeat="currResource in resourceList" style="margin-right: 1em;background-color: #ffffff; padding-top: 0.7em; padding-bottom: 0.7em; min-height: 6em; margin-top: 0.7em">
          <div class="row">
            <div class="col-sm-3">
              <img src="image/resource/{{currResource.ext_name + '.ico'}}" class="img-responsive" alt=""/>
            </div>
            <div class="col-sm-9">
              <div class="row">
                <span class="text-primary">{{currResource.origin_name}}</span> <br />
                <span>{{currResource.creater.username}}　上传于: </span>
              </div>

              <div class="row">
                <div class="col-sm-offset-3 col-sm-9 ">
                  <button class="btn btn-danger btn-sm" ng-click="delete(currResource.id)"  ng-show="userPrivilege.delete || currentUserId == currResource.creater_id"  style="width: 6em">删除</button>
                  <button class="btn btn-success btn-sm pull-right" ng-click="download(currResource.id)" style="width: 6em">下载</button>
                </div>

              </div>
            </div>
          </div>
        </div>

      </div>
    </div>
  </div>

</div>
